import { pageInfo } from '../base/baseRequestPage'

export interface dispatchLogs {
  /**
   * 调度任务code
   */
  dispatchCode: string
  /**
   * 运行时间
   */
  runTime: string
  /**
   * 运行状态
   */
  runStatus: string
  /**
   * 日志
   */
  logs: string
}
export interface dispatchLogsSA extends pageInfo {
  /**
   * 运行时间
   */
  startTime: string
  /**
   * 运行状态
   */
  endTime: string
  /**
   * 名称
   */
  name: string
  /**
   * 调度任务状态
   */
  runStatus: string
}
export interface dispatchLogsEditA extends dispatchLogs {
  /**
   * id
   */
  id: string
}
export interface dispatchLogsTableA extends dispatchLogs {
  /**
   * id
   */
  name: string
}
export class dispatchLogsClass {
  dispatchLogsS: dispatchLogsSA = {
    startTime: '',
    endTime: '',
    name: '',
    runStatus: '',
    page: 1,
    size: 10,
    total: 0
  }
  dialogFormVisible = false
  dispatchLogsEdit = {} as dispatchLogsEditA
  dispatchLogsTable = [] as dispatchLogsTableA[]
  dispatchLogsDetail = {} as dispatchLogsTableA
  runStatus = [
    {
      value: 'SUCCESS',
      label: '成功'
    },
    {
      value: 'FAIL',
      label: '失败'
    },
    {
      value: 'UNKNOWN',
      label: '未知'
    }
  ]
}
